package com.zzz.friend.domain.user.dto;

import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @BelongsProject: oj-project
 * @BelongsPackage: com.zzz.friend.domain.user.dto
 * @Author: zhai
 * @CreateTime: 2025-10-25  17:07
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class UserDTO {
    @Pattern(
            regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$",
            message = "⼿机号码格式不正确"
    )
    private String phone;
    private String code;
}
